/**
 * @param {character[][]} board
 * @param {string} word
 * @return {boolean}
 */
var exist = function (board, word) {
  let flag = false,
    count = 0
  bc(0, 0)
  function bc(row, col) {
    if (count == word.length) {
      flag = true
      return
    }
   for(let i=0;i)
  }
}
exist(
  [
    ['A', 'B', 'C', 'E'],
    ['S', 'F', 'C', 'S'],
    ['A', 'D', 'E', 'E'],
  ],
  'ABCCED'
)
